package com.spring.cloud.service;

import com.spring.cloud.entity.Week01;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by qpx on 2018/4/15.
 */
@FeignClient(value = "producer", fallback = ComputeClientHystrix.class)
public interface ComputeClient {
    @RequestMapping(method = RequestMethod.GET, value = "/springBoot/week")
    public Week01 queryWeekByID(@RequestParam(value = "abc") Integer abc);

}
